/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package contatos.patterns.strategy;

import org.jfree.chart.ChartFactory;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
import org.jfree.data.category.DefaultCategoryDataset;

/**
 *
 * @author felipe
 */
public class GraficoColunaStrategy implements IGraficoStrategy {

    @Override
    public JFreeChart gerarGrafico(DefaultCategoryDataset ds) {
        JFreeChart grafico = ChartFactory.createBarChart("Quantidade de contatos por operadora", "",
                "", ds, PlotOrientation.VERTICAL, true, true, false);
   
        return grafico;
    }

}
